//package com.culturalCenter.dataCenter.service.impl.weather;
//
//
//import com.culturalCenter.dataCenter.entity.weather.Climate;
//import com.culturalCenter.dataCenter.entity.weather.Loc;
//import com.culturalCenter.dataCenter.entity.weather.Weather;
//import com.culturalCenter.dataCenter.mapper.weather.LocMapper;
//import com.culturalCenter.dataCenter.mapper.weather.WeatherMapper;
//import com.culturalCenter.dataCenter.service.weather.HtmlService;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import java.util.List;
//
//@Service
//public class HtmlServiceImpl implements HtmlService {
//
//    @Resource
//    private LocMapper locMapper;
//    @Resource
//    private WeatherMapper weatherMapper;
//
//    @Override
//    public void addWeather(Climate climate) {
//        locMapper.insert(climate.getLoc());
//        weatherMapper.insert(climate.getWeather());
//    }
//
//    @Override
//    public void deleteWeather() {
//        locMapper.delete();
//        weatherMapper.deleteWeather();
//    }
//
//    @Override
//    public List<Loc> selectLoc() {
//        return locMapper.selectByExample(null);
//    }
//
//    @Override
//    public List<Weather> selectWeather() {
//        return weatherMapper.selectByExample(null);
//    }
//
//}
